/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.KDniao.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 快递鸟接口配置信息Entity
 * @author Owen
 * @version 2017-04-05
 */
public class LogisticsThreeParty extends DataEntity<LogisticsThreeParty> {
	
	private static final long serialVersionUID = 1L;
	private String ebusinessid;		// ebusinessid
	private String appkey;		// appkey
	private String isenadle;		// 是否启用（1启用，0否）
	private String tokenUrl;		// 回调路径
	private String requestUrl;		// 请求路径
	
	public LogisticsThreeParty() {
		super();
	}

    public LogisticsThreeParty(String ebusinessid, String appkey, String isenadle, String tokenUrl, String requestUrl) {
        super();
        this.ebusinessid = ebusinessid;
        this.appkey = appkey;
        this.isenadle = isenadle;
        this.tokenUrl = tokenUrl;
        this.requestUrl = requestUrl;
    }

    @Length(min = 1, max = 255, message = "ebusinessid长度必须介于 1 和 255 之间")
	public String getEbusinessid() {
		return ebusinessid;
	}

	public void setEbusinessid(String ebusinessid) {
		this.ebusinessid = ebusinessid;
	}
	
	@Length(min=1, max=255, message="appkey长度必须介于 1 和 255 之间")
	public String getAppkey() {
		return appkey;
	}

	public void setAppkey(String appkey) {
		this.appkey = appkey;
	}
	
	@Length(min=0, max=11, message="是否启用（1启用，0否）长度必须介于 0 和 11 之间")
	public String getIsenadle() {
		return isenadle;
	}

	public void setIsenadle(String isenadle) {
		this.isenadle = isenadle;
	}
	
	@Length(min=0, max=255, message="回调路径长度必须介于 0 和 255 之间")
	public String getTokenUrl() {
		return tokenUrl;
	}

	public void setTokenUrl(String tokenUrl) {
		this.tokenUrl = tokenUrl;
	}
	
	@Length(min=0, max=255, message="请求路径长度必须介于 0 和 255 之间")
	public String getRequestUrl() {
		return requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}
	
}